#link https://ohmyz.sh/#install
# 1 移动解压后的ohmyzsh到用户的家目录
mv ~/Downloads/ohmyzsh-master ~/.oh-my-zsh
# 2 把 .zshrc 配置文件拷贝到当前用户的目录下
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# 3 让 .zshrc 配置文件生效
source ~/.zshrc
# 4 直接添加以下自己添加的代码
vim ~/.oh-my-zsh/plugins/git/git.plugin.zsh


# <====== 个人常用-start ======>
alias gadd='git add .'
alias gbranch='git branch'
alias gpull='git pull --rebase'
alias gpush='git push origin "$(git_current_branch)"'
alias greset='git reset --hard HEAD~1'
alias gcommit='git commit -m'
alias gcheckout='git checkout'
alias gstatus='git status'
alias gstatusp='git stash pop'
# <====== 个人常用-end ======>